-- CALC_NORMAL_AUDIENCE_BONUS

-- 计算观众大黄蜂掉落
-- @param user    玩家对象
-- @param args    奖励计算参数
return function(user, args)
    local rand = DungeonM.getRandSeed("activities_audience");
    local arr;
    local arr1;
    local bonus = {};
    local dungeonId = DungeonM.getDungeonId();
    local count;

    -- 不同难度的副本数值不同
    if dungeonId == 20003 then
        count = 5000;
    elseif dungeonId == 20002 then
        count = 2500;
    else
        count = 1000;
    end

    if BuildingBonusM.getFieldStat("bumblebee_gem") < 2 then
        arr = { { ["bonus"] = { 2, "money", count, }, ["ratio"] = 50, },
                { ["bonus"] = { 2, "money", count * 2, }, ["ratio"] = 25, },
                { ["bonus"] = { 2, "gem", 1, }, ["ratio"] = 25, },};
    else
        arr = { { ["bonus"] = { 2, "money", count, }, ["ratio"] = 50, },
                { ["bonus"] = { 2, "money", count * 2, }, ["ratio"] = 25, },};
    end

    arr1 = fetchElemBySeed(arr, rand);
    bonus  = arr1["bonus"];

    -- 当前累计的奖励钻石
    -- 添加统计
    if bonus[2] == "gem" then
       BuildingBonusM.addFieldStat("bumblebee_gem", bonus[3]);
    end

    return bonus;
end